package com.bj58.data.hadoop.info.dimension;

public class DimensionFactory {

	public static final String PACKAGE = "com.bj58.data.hadoop.info.dimension";
	
	/**
	 * 创建一个对象
	 * @param dim
	 * @return
	 * @throws ClassNotFoundException 
	 * @throws IllegalAccessException 
	 * @throws InstantiationException 
	 */
	public static IDimension createDimension(String dim) throws InstantiationException, IllegalAccessException, ClassNotFoundException
	{
		IDimension dimension = (IDimension)Class.forName(PACKAGE+"."+dim).newInstance();
		return dimension;
	}
}
